package hasalah.demo.client.services;

import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

@RemoteServiceRelativePath("BackendService")
public interface BackendService extends RemoteService {

	
	public String saveEconomy();
	
	/**
	 * Utility class for simplifying access to the instance of async service.
	 */
	public static class Util {
		
		private static BackendServiceAsync instance;
		
		public static BackendServiceAsync getInstance(){
		
			if (instance == null) {
			
				instance = GWT.create(BackendService.class);
				
			}
			
			return instance;
		}
	}
}
